package cn.chenhuanming.shh.administer.entity.jpa;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * WebsiteBlogroll entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "website_blogroll", catalog = "house")
public class WebsiteBlogroll implements java.io.Serializable {

	// Fields

	private Integer id;
	private String name;
	private String url;
	private String photo;
	private String status;

	// Constructors

	/** default constructor */
	public WebsiteBlogroll() {
	}

	/** minimal constructor */
	public WebsiteBlogroll(String name, String url, String status) {
		this.name = name;
		this.url = url;
		this.status = status;
	}

	/** full constructor */
	public WebsiteBlogroll(String name, String url, String photo, String status) {
		this.name = name;
		this.url = url;
		this.photo = photo;
		this.status = status;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "name", nullable = false)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "url", nullable = false)
	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	@Column(name = "photo")
	public String getPhoto() {
		return this.photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

	@Column(name = "status", nullable = false, length = 3)
	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

}